//
//  AddressManagerView.m
//  GoodWayClient
//
//  Created by HuiDong on 15/12/26.
//  Copyright © 2015年 HuiDong. All rights reserved.
//

#import "AddressManagerView.h"

@implementation AddressManagerView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
+(instancetype)one
{
    return [[[NSBundle mainBundle] loadNibNamed:@"AddressManagerView" owner:nil options:nil] lastObject];
}

- (IBAction)selectAllClick:(id)sender {
    if (self.a == 0) {
        self.a = 1;
        [self.delegate selectAll];
        [sender setBackgroundImage:[UIImage imageNamed:@"goodSelected.png"] forState:UIControlStateNormal];
    }else
    {
        self.a = 0;
        [self.delegate deselectAll];
        [sender setBackgroundImage:[UIImage imageNamed:@"goodNotSelected.png"] forState:UIControlStateNormal];
    }
}

- (IBAction)delectAllClick:(id)sender {
    [self.delegate Result];
}
@end
